package com.tn.openrpc.util;

/**
 * The interface to a simple factory object that takes an argument.
 */
public interface ParametrizedFactory<T, P>
{

  /**
   * Returns a new instance of <code>T</code> using the <code>parameter</code>.
   */
  public T newInstance(P parameter) throws FactoryException;
}
